#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<assert.h>
char* my_strcpy(char* str1, const char* str2)
{
	assert(str1 && str2);
	char* p = str1;
	while (*str1++ = *str2++)
	{
		;
	}
	return str1;
}

int main()
{
	char arr1[20] = "xxxxxxxxxxxxxxxxx";
	char arr2[] = "abcdef";
	
	my_strcpy(arr1, arr2);
	//strcpy(arr1, arr2);

	printf("%s", arr1);


	return 0;
}